package com.bonana.core.services;

import com.bonana.core.entity.mybatis.Banner;

import java.util.List;

/**
 * Created by Administrator on 2016/7/4.
 */
public interface BannerService {
    public final int TopBanner = 1;
    public final int AdBanner = 2;

    List<Banner> getTopBanner(); //首页顶部
    List<Banner> getAdBanner();  //首页中部
    int addBanner(Banner bner);
    int delBanner(int bannerId);
    Banner getBanerById(int bannerId);
    int updateBanner(Banner bner);
    List<Banner> getBanners(int pgNum, int pgSize, int type, String condition);
}
